﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Admin.ViewModels.OnlineSupportViewModel>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<%@ Import Namespace="SDT.Lib.Paging" %>
<%@ Import Namespace="SDT.Admin.ViewModels" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Chi tiết hỗ trợ
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <%if (ViewData["MessageInfo"] == null)
     { %>
            <table class="admintable">
                <tbody>
                <tr>
                    <td class="key">Yahoo</td>
                    <td><%=Model.OnlineSupport != null ? Model.OnlineSupport.Yahoo : string.Empty%></td>
                    </tbody>          
                </tr>
                <tr>
                    <td class="key">Skype</td>
                    <td><%=Model.OnlineSupport != null ? Model.OnlineSupport.Skype : string.Empty%></td>
                    </tbody>          
                </tr>
                <tr>
                    <td class="key">Danh mục</td>
                    <td><%=Model.ListOnlineCat.SingleOrDefault(d => d.Key.ToString().Equals(Model.OnlineSupport.SupportType.ToString())).Value %></td>
                    </tbody>          
                </tr>
            </table>
   <% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <%= Html.Toolbar("Sửa", "/OnlineSupport/Edit/" + Model.OnlineSupport.ID, "edit")%>
    <%= Html.Toolbar("Xoá", "/OnlineSupport/Delete/" + Model.OnlineSupport.ID, "delete")%>
    <%= Html.Toolbar("Quay về", "/OnlineSupport", "back") %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
    Chi tiết hỗ trợ
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
